<style>

    textarea{

        resize: none;

    }

	.btn_box{

		    width: 100px;

    height: 40px;

    text-align: center;

    color: #fff;

    background: #26c17b;

    border: none;

    outline: none;

    cursor: pointer;

    display: block;

		}

</style>

<!-- 内容 -->

<div id="right_box">

<div class="right_a">

            <a href="/empress/wechart.php"><span class="right_box1 set_menu"><div class="btn_box">自定义菜单</div></span></a>

            <a href="/empress/wechart.php?action=subscribe"><span class="right_box1 set_menu" ><div class="btn_box">首次关注设置</div></span></a>

            <a href="/empress/wechart.php?action=set_token"><span class="right_box1 set_menu" style="border:1px solid #fff"><div class="btn_box">微信接口配置</div></span></a>
            <a href="/empress/wechart.php?action=material"><span class="right_box1 set_menu" ><div class="btn_box">图文消息管理</div></span></a>
            <a href="/empress/wechart.php?action=option_url"><span class="right_box1 set_menu" ><div class="btn_box">自定义URL</div></span></a>
           

        </div>

  <link href='/static/adm/css/main.css' rel='stylesheet' type='text/css' />

<link href='/static/adm/css/global.css' rel='stylesheet' type='text/css' />

<link href='/static/adm/css/wechat.css' rel='stylesheet' type='text/css' />

<script type='text/javascript' src='/static/adm/js/jquery.min.js'></script>

<script type='text/javascript' src='/static/adm/js/global.js'></script>

<script type='text/javascript' src='/static/adm/js/wechat.js?<?php echo time();?>'></script>

	<div class="wrap">



<script language="javascript">$(document).ready(wechat_obj.set_token_init);</script>

<div id="token" class="r_con_wrap">

	<div class="tips_info"><strong>重要提示：</strong>我们确保每个公众号的信息安全，公众号密码系统不会做记录，您可放心填写</div>

	<form id="set_token_form" class="r_con_form">

		<div class="set_token_msg"></div>

		<div class="rows">

			<label>接口URL</label>

			<span class="input"><span class="tips">http://<?php echo $_SERVER['HTTP_HOST']; ?>/wehat/details</span></span>

			<div class="clear"></div>

		</div>

		<div class="rows">

			<label>接口Token</label>

			<span class="input"><span class="tips"><?php echo $weixin_config['wx_token']?></span></span>

			<div class="clear"></div>

		</div>

        <?php if($weixin_config['is_binding']==0){?>

		<div class="rows">

			<label>微信公众帐号</label>

			<span class="input"><input autocomplete="off" name="wx_uname" id="wx_uname" value="" type="text" class="form_input" size="35" maxlength="100" notnull></span>

			<div class="clear"></div>

		</div>

		<div class="rows">

			<label>微信公众密码</label>

			<span class="input"><input autocomplete="off" name="wx_pwd" id="wx_pwd" value="" type="password" class="form_input" size="35" maxlength="100" notnull></span>

			<div class="clear"></div>

		</div>

        <div class="rows">

			<label>微信公众密码</label>

			<span class="input"><input autocomplete="off" name="wx_appid" id="wx_appid" value="" type="password" class="form_input" size="35" maxlength="100" notnull></span>

			<div class="clear"></div>

		</div>

        <div class="rows">

			<label>微信公众密码</label>

			<span class="input"><input autocomplete="off" name="wx_appsecret" id="wx_appsecret" value="" type="password" class="form_input" size="35" maxlength="100" notnull></span>

			<div class="clear"></div>

		</div>

		<div class="rows">

			<label></label>

			<span class="input">

			<input type="button" class="btn_green" name="submit_button_sd" value="对接" />

			</span>

			<div class="clear"></div>

		</div>

		<?php }else{?>

		<div class="rows">

			<label>微信公众帐号</label>

			<span class="input"><span class="tips"><?php echo $weixin_config['wx_uname']?></span></span>

			<div class="clear"></div>

		</div>

		<div class="rows">

			<label></label>

			<span class="input">

				<a href="/empress/wechart.php?action=set_token&do_action=token_unbind" class="btn_green" onClick="if(!confirm('确定要解除绑定，继续吗？')){return false};">解除绑定</a></span>

			<div class="clear"></div>

		</div>

		<?php }?>

		<input type="hidden" name="do_action" value="wechat.token_set">

	</form>

</div>

</div>

</div>